<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/page/common/taglibs.jsp" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table>
    <tr>
        <td>id</td>
        <td>姓名</td>
    </tr>
    <tbody id="tb"></tbody>
</table>
</body>
<script type="text/javascript">
    $(function (){
        search();
    })

    function search(){
        $.post(
            "${ctx}/score/showStu",
            {},
            function (result){
                var html ="";
                for (var i = 0; i < result.data.length; i++) {
                    var stu = result.data[i];
                    html += '<tr>';
                    html +='<td>+stu.id+</td>';
                    html +='<td>+stu.exaName+</td>';
                    html += '</tr>';
                }
                $("#tb").html(html);
            }
        );
    }
</script>
</html>
